package web.mapper;

import org.springframework.stereotype.Repository;
import spider.entitys.Novel;

import java.util.List;
import java.util.Map;

@Repository
public interface NovelMapper {
    int deleteByPrimaryKey( Long id );

    int insert( Novel record );

    int insertSelective( Novel record );

    Novel selectByPrimaryKey( Long id );

    int updateByPrimaryKeySelective( Novel record );

    int updateByPrimaryKey( Novel record );

    void batchInsert( List< Novel > novels );

    List<Novel > getNovelByKeyWord( String keyword );
    List<Novel > getNovelByKeyWord2( Map< String, String > map );
}